namespace Collaboris.Saf.Tests.Generated
{
    using System.Data;

    using Actions.DataSet;
    using Actions.Entities;

    using Engine.Report;

    using Microsoft.VisualStudio.TestTools.UnitTesting;

    [TestClass]
    public class GetDataSetFromCSVTest
    {
        #region Public Methods

        [TestMethod]
        public void GetDataSetFromCSV_Test()
        {
            var getdatasetfromcsv = new TestAssistant<GetDataSetFromCSV, CSVFileInfo>(
                TestEnvironment.PublishingSite, "GetDataSetFromCSVTestWeb", "BLANKINTERNET#0");

            using (getdatasetfromcsv)
            {
                getdatasetfromcsv.FirstEntity.FilePath = getdatasetfromcsv.FirstSupportingFilePath;

                MacroReport doReport = getdatasetfromcsv.DoMacro();

                DataSet dataSet = getdatasetfromcsv.FirstEntity.CsvDataSet;
                Assert.IsNotNull(dataSet);
            }
        }

        #endregion
    }
}